package org.javaboy.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
        //获取工厂 Bean
        //Object client3 = ctx.getBean("&client3");
        //获取 getObject 方法的返回值
        Object client3 = ctx.getBean("client3");
        System.out.println("client3.getClass() = " + client3.getClass());
    }
}
